<?php
/**
 * Created by PhpStorm.
 * User: xiaoxin
 * Date: 2018/10/22 0022
 * Time: 18:32
 */

namespace app\index\validate;
use think\Validate;

class EditPassword extends Validate
{
	protected $rule =   [
		'password'=>'require|length:8,25',
		'newpassword'=>'require|length:8,25',
		'renewpassword'=>'require|confirm:newpassword',
	];
	protected $message  =   [
		'password.require'=>'请填写密码',
		'password.length'=>'密码只能在8-25位',
		'newpassword.require'=>'请填写密码',
		'newpassword.length'=>'密码只能在8-25位',
		'renewpassword.confirm'=>'两次密码不一致',
		'renewpassword'=>'请确认密码',
	];
}